//获取当前时间一周前时间戳,返回开始时间和结束时间戳
export function getRecentWeekTime() {
  const nowTime = new Date();
  const day = nowTime.getDay();
  nowTime.setHours(0);
  nowTime.setMinutes(0);
  nowTime.setSeconds(0);
  nowTime.setMilliseconds(0);
  const startTime = nowTime.getTime() - 7 * 86400000;
  const endTime = nowTime.getTime() + 86400000 - 1000;
  return {
    startTime,
    endTime
  }
}